﻿CREATE TABLE [dbo].[Device] (
    [Id]             INT           IDENTITY (1, 1) NOT NULL,
    [DeviceName]     VARCHAR (255) NULL,
    [DeviceTypeId]   VARCHAR (255) NOT NULL,
    [IsRootDevice]   BIT           NOT NULL,
    [IsOptional]     BIT           NOT NULL,
    [ParentDeviceId] INT           NULL
);

